<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<script type="text/JavaScript"
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
	
</script>

<script>
	function testL(s) {
		$.ajax({
			type : "POST",
			url : "testluceneservice",
			cache : false,
			data : "s=" + s,
			success : function(data, textStatus, jqXHR) {
				alert(data);
			},
			error : function(jqXHR, textStatus, errorThrown) {
				alert("error " + textStatus);
			}
		});
	}
</script>


<title>Groovy Lucene Test</title>
</head>
<body>

	<p>Lucene:</p>
	<form name=frm1 action="javascript: testL(txt1.value)">
		<textarea name="txt1" id="txt1" COLS=40 ROWS=5></textarea>
		<input type="button" value="test lucene text"
			onclick="testL(txt1.value)">
	</form>

</body>
</html>
